package org.zfes.snowier.cloud.zbss.cms.topic.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsTopicAttachment extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsTopicAttachment() {}
	public CmsTopicAttachment(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="所属内容不能为空")
	  private java.lang.Long topicId;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=36,message="长度不能大于36")
	  private java.lang.String fileId;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="文件路径长度不能大于255")
	  private java.lang.String filePath;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="文件名称长度不能大于255")
	  private java.lang.String fileName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=10,message="附件后缀长度不能大于10")
	  private java.lang.String fileExtern;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=10,message="附件类型长度不能大于10")
	  private java.lang.String fileType;
 
	@javax.validation.constraints.NotNull(message="排列顺序不能为空")
	  private java.lang.Integer sortNum;
 
	@javax.validation.constraints.NotNull(message="下载次数不能为空")
	  private java.lang.Integer downloadCount;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=300,message="描述长度不能大于300")
	  private java.lang.String description;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	
	//<-------------------------------------------->
	public CmsTopicAttachment setTopicId(java.lang.Long topicId){
	 this.topicId=topicId;
	 return this;
	}
	public java.lang.Long getTopicId(){
		return this.topicId;
	}
	public CmsTopicAttachment setFileId(java.lang.String fileId){
		this.fileId=fileId==null?null:fileId.trim();
	 return this;
	}
	public java.lang.String getFileId(){
		return this.fileId;
	}
	public CmsTopicAttachment setFilePath(java.lang.String filePath){
		this.filePath=filePath==null?null:filePath.trim();
	 return this;
	}
	public java.lang.String getFilePath(){
		return this.filePath;
	}
	public CmsTopicAttachment setFileName(java.lang.String fileName){
		this.fileName=fileName==null?null:fileName.trim();
	 return this;
	}
	public java.lang.String getFileName(){
		return this.fileName;
	}
	public CmsTopicAttachment setFileExtern(java.lang.String fileExtern){
		this.fileExtern=fileExtern==null?null:fileExtern.trim();
	 return this;
	}
	public java.lang.String getFileExtern(){
		return this.fileExtern;
	}
	public CmsTopicAttachment setFileType(java.lang.String fileType){
		this.fileType=fileType==null?null:fileType.trim();
	 return this;
	}
	public java.lang.String getFileType(){
		return this.fileType;
	}
	public CmsTopicAttachment setSortNum(java.lang.Integer sortNum){
	 this.sortNum=sortNum;
	 return this;
	}
	public java.lang.Integer getSortNum(){
		return this.sortNum;
	}
	public CmsTopicAttachment setDownloadCount(java.lang.Integer downloadCount){
	 this.downloadCount=downloadCount;
	 return this;
	}
	public java.lang.Integer getDownloadCount(){
		return this.downloadCount;
	}
	public CmsTopicAttachment setDescription(java.lang.String description){
		this.description=description==null?null:description.trim();
	 return this;
	}
	public java.lang.String getDescription(){
		return this.description;
	}
	public CmsTopicAttachment setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsTopicAttachment setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsTopicAttachment setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}

}
